package com.feicheng.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.entity.IntoHeader;
import com.feicheng.mapper.IntoHeaderMapper;
import com.feicheng.model.IntoHeaderWithItem;
import com.feicheng.model.IntoHeaderWithItem;
import com.feicheng.model.IntoWithPurchase;
import com.feicheng.service.IIntoHeaderService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hao.zhang
 * @since 2022-07-04
 */
@Service
public class IntoHeaderServiceImpl extends ServiceImpl<IntoHeaderMapper, IntoHeader> implements IIntoHeaderService {

    /**
     * 入库分页条件查询
     * @param page 分页条件
     * @param intoHeaderWithItemQueryWrapper 查询条件
     * @author hao.Zhang
     * @return
     */
    @Override
    public Page<IntoHeaderWithItem> selectIntoPage(
            Page<IntoHeaderWithItem> page,
            QueryWrapper<IntoHeaderWithItem> intoHeaderWithItemQueryWrapper) {
        return getBaseMapper().selectIntoPage(page, intoHeaderWithItemQueryWrapper);
    }

    /**
     * 入库详情信息查询
     * @param wrapper
     * @author yvan.yao
     * @return
     */
    @Override
    public IntoWithPurchase selectIntodetail(Wrapper wrapper) {
        return getBaseMapper().selectIntodetail(wrapper);
    }
}
